package cn.ym.mall.service;

import cn.ym.mall.entity.Complaints;
import cn.ym.mall.vo.Page;

import java.sql.SQLException;

/**
 * 赵金明
 * 投诉service层
 * 2022/8/12
 */
public interface ComplaintsService {
    /**
     * 新增投诉
     * @param complaints 新增的投诉
     * @return
     * @throws SQLException
     */
    public boolean addComplaints(Complaints complaints) throws SQLException;

    /**
     *通过投诉id查询投诉信息
     * @param tsid
     * @return
     * @throws SQLException
     */
    public Complaints getComplaintsByTid(Integer tsid) throws SQLException;

    /**
     * 分页查询所有投诉
     * @param pageNo
     * @param pageSize
     * @return
     * @throws SQLException
     */
    public Page<Complaints> getPageComplaints(Integer pageNo, Integer pageSize) throws SQLException;
}
